Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(slider): add component tokens #10716

Merged
merged 14 commits into from
Nov 20, 2024
Merged

Conversation

DitwanP
Copy link
Contributor

@DitwanP DitwanP commented Nov 9, 2024

Related Issue: #7180

Summary

Add tokens for the slider component, e2e, and custom-theme chromatic tests. (WIP)

Slider Tokens

--calcite-slider-text-color: Specifies the component's text color.
--calcite-slider-track-color: Specifies the component's track color.
--calcite-slider-track-fill-color: Specifies the component's fill track color.
--calcite-slider-handle-fill-color: Specifies the component's handle fill color.
--calcite-slider-handle-extension-color: Specifies the component's handle extension color.
--calcite-slider-tick-color: Specifies the component's tick color.
--calcite-slider-tick-border-color: Specifies the component's tick border color.
--calcite-slider-tick-selected-color: Specifies the component's tick color when in selected range.
--calcite-slider-graph-color: Specifies the component's graph color.

@DitwanP DitwanP changed the title initial token additions and default tests feat(slider): add component tokens Nov 9, 2024
@DitwanP DitwanP added skip visual snapshots Pull requests that do not need visual regression testing. enhancement Issues tied to a new feature or request. labels Nov 9, 2024
@DitwanP DitwanP requested a review from alisonailea November 9, 2024 01:01
@alisonailea
Copy link
Contributor

we are not adding tokens for outline-color and I don't think this component needs stateful tokens

@DitwanP
Copy link
Contributor Author

DitwanP commented Nov 12, 2024

we are not adding tokens for outline-color and I don't think this component needs stateful tokens

@alisonailea
Curious on the a reasoning for this? I feel like people might want to change from the default blue when hovering the thumb/handle no?

@alisonailea
Copy link
Contributor

@alisonailea Curious on the a reasoning for this? I feel like people might want to change from the default blue when hovering the thumb/handle no?

We may in the future. For now, here's a list of our tokenizable styles

https://github.com/Esri/calcite-design-system/wiki/tokens-component#3-review-component-for-tokenizable-styles

@DitwanP DitwanP marked this pull request as ready for review November 12, 2024 23:31
Copy link
Contributor

@alisonailea alisonailea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review the component for shared design patterns. It's more important that tokens define our design patterns than match the structure of the component. Also make sure tokens can be applied in the various host states including disabled.

@DitwanP DitwanP requested a review from alisonailea November 14, 2024 23:33
Copy link
Contributor

@alisonailea alisonailea left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@DitwanP DitwanP merged commit cbd5bb0 into dev Nov 20, 2024
10 checks passed
@DitwanP DitwanP deleted the dit13711/7180-add-tokens-to-slider branch November 20, 2024 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issues tied to a new feature or request. skip visual snapshots Pull requests that do not need visual regression testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants